home *** CD-ROM | disk | FTP | other *** search
- <SCRIPT LANGUAGE=VBScript RUNAT=Server>
-
- ' There will be two objects associated with each session -- a
- ' dtSearchEngine.Server to handle searching and display of retrieved files,
- ' and a SearchResults which will be needed to generate search reports.
-
- Sub Application_OnStart
- Application("SessionCount") = 0
- End sub
-
- Sub Application_OnEnd
- End sub
-
- Sub Session_OnStart
-
- Application("Conn_ConnectionString") = "DSN=PEDIA;"
- Application("Conn_ConnectionTimeout") = 15
- Application("Conn_CommandTimeout") = 30
- Application("Conn_CursorLocation") = 3
- Application("Conn_RuntimeUserName") = "Admin"
- Application("Conn_RuntimePassword") = ""
-
- ' Create an instance of the dtSearch Engine and initialize it
- Application.Lock
- Application("SessionCount") = Application("SessionCount") + 1
- Application.UnLock
-
- Dim engine
- Set Engine = server.createobject("dtSearchEngine53.Server")
-
- ' Use DebugLogName to create a diagnostic log
- 'Engine.DebugLogName = "c:\dtSearchAsp.log"
-
- Engine.Initialize
- Set Session("Engine") = Engine
- Set Session("Results") = Nothing
- End Sub
-
- Sub Session_OnEnd
- Set Session("Engine") = Nothing
- Set Session("Results") = Nothing
- End Sub
-
- 'EventName Description
- 'Session_OnStart Runs the first time a user runs any page in your application
- 'Session_OnEnd Runs when a user's session times out or quits your application
- 'Application_OnStart Runs once when the first page of your application is run for the first time by any user
- 'Application_OnEnd Runs once when the web server shuts down
-
- </SCRIPT>
-
-